package com.itany.ums.service;

import com.itany.ums.exception.RequestParameterErrorException;
import com.itany.ums.exception.UserExistException;

public interface UserService {

    /**
     * 用户注册
     * 对所有前台数据进行非空保护
     * @param username  用户名,唯一且非空
     * @param password  密码,非空
     * @param phone     电话,非空
     * @param address   地址,非空
     */
    public void register(String username,String password,String phone,String address) throws RequestParameterErrorException, UserExistException;

}
